(function()rewardRank={
[1]={minRank=1,maxRank=1,historyReward=250,reward={{10004,550},{10001,1250000},{10002,500000},{10006,800}}},
[2]={minRank=2,maxRank=2,historyReward=175,reward={{10004,500},{10001,1187500},{10002,475000},{10006,775}}},
[3]={minRank=3,maxRank=3,historyReward=100,reward={{10004,450},{10001,1125000},{10002,450000},{10006,750}}},
[4]={minRank=4,maxRank=4,historyReward=80,reward={{10004,400},{10001,1062500},{10002,425000},{10006,725}}},
[5]={minRank=5,maxRank=5,historyReward=70,reward={{10004,350},{10001,1000000},{10002,400000},{10006,700}}},
[6]={minRank=6,maxRank=6,historyReward=65,reward={{10004,340},{10001,937500},{10002,375000},{10006,680}}},
[7]={minRank=7,maxRank=7,historyReward=60,reward={{10004,330},{10001,875000},{10002,350000},{10006,660}}},
[8]={minRank=8,maxRank=8,historyReward=55,reward={{10004,320},{10001,812500},{10002,325000},{10006,640}}},
[9]={minRank=9,maxRank=9,historyReward=50,reward={{10004,310},{10001,750000},{10002,300000},{10006,620}}},
[10]={minRank=10,maxRank=10,historyReward=40,reward={{10004,300},{10001,687500},{10002,275000},{10006,600}}},
[11]={minRank=11,maxRank=20,historyReward=20,reward={{10004,250},{10001,625000},{10002,250000},{10006,590}}},
[12]={minRank=21,maxRank=30,historyReward=15,reward={{10004,200},{10001,562500},{10002,225000},{10006,575}}},
[13]={minRank=31,maxRank=40,historyReward=10,reward={{10004,150},{10001,500000},{10002,200000},{10006,560}}},
[14]={minRank=41,maxRank=50,historyReward=5,reward={{10004,130},{10001,437500},{10002,175000},{10006,545}}},
[15]={minRank=51,maxRank=70,historyReward=4,reward={{10004,110},{10001,375000},{10002,150000},{10006,530}}},
[16]={minRank=71,maxRank=100,historyReward=3,reward={{10004,100},{10001,343750},{10002,137500},{10006,500}}},
[17]={minRank=101,maxRank=200,historyReward=2,reward={}},
[18]={minRank=201,maxRank=300,historyReward=2,reward={}},
[19]={minRank=301,maxRank=400,historyReward=1,reward={}},
[20]={minRank=401,maxRank=500,historyReward=1,reward={}},
[21]={minRank=501,maxRank=99999,historyReward=0,reward={}}}end)();
(function()pkReward={
[1]={win={{10001,20000},{10002,5000},{10006,50}},fail={{10001,10000},{10002,2500},{10006,30}}}}end)();
(function()pkSelect={
[1]={minRank=1,maxRank=1,range=5},
[2]={minRank=2,maxRank=2,range=5},
[3]={minRank=3,maxRank=3,range=5},
[4]={minRank=4,maxRank=4,range=5},
[5]={minRank=5,maxRank=5,range=5},
[6]={minRank=6,maxRank=6,range=5},
[7]={minRank=7,maxRank=7,range=6},
[8]={minRank=8,maxRank=8,range=7},
[9]={minRank=9,maxRank=9,range=8},
[10]={minRank=10,maxRank=10,range=9},
[11]={minRank=11,maxRank=20,range=7},
[12]={minRank=21,maxRank=30,range=10},
[13]={minRank=31,maxRank=40,range=10},
[14]={minRank=41,maxRank=50,range=10},
[15]={minRank=51,maxRank=70,range=12},
[16]={minRank=71,maxRank=100,range=15},
[17]={minRank=101,maxRank=200,range=30},
[18]={minRank=201,maxRank=300,range=50},
[19]={minRank=301,maxRank=400,range=50},
[20]={minRank=401,maxRank=500,range=50},
[21]={minRank=501,maxRank=600,range=100},
[22]={minRank=601,maxRank=700,range=200},
[23]={minRank=701,maxRank=800,range=300},
[24]={minRank=801,maxRank=900,range=400},
[25]={minRank=901,maxRank=1000,range=500},
[26]={minRank=1001,maxRank=1100,range=600},
[27]={minRank=1101,maxRank=1200,range=700},
[28]={minRank=1201,maxRank=1300,range=800},
[29]={minRank=1301,maxRank=1400,range=900},
[30]={minRank=1401,maxRank=99999,range=1000}}end)();
(function()pkBuffer={
[1]={rate=10,buffers={301,302,303}},
[2]={rate=20,buffers={311,312,313}},
[3]={rate=30,buffers={321,322,323}},
[4]={rate=40,buffers={331,332,333}},
[5]={rate=50,buffers={341,342,343}},
[6]={rate=60,buffers={351,352,353}},
[7]={rate=70,buffers={361,362,363}},
[8]={rate=80,buffers={371,372,373}},
[9]={rate=90,buffers={381,382,383}},
[10]={rate=100,buffers={391,392,393}}}end)();